package com.slz3.business.module.systemManagement.sysMenu.service;

import com.slz3.business.module.systemManagement.sysMenu.domain.SysMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface SysMenuService {

    SysMenu save(SysMenu sysMenu);

    Page<SysMenu> page(MultiValueMap<String,String> queryParams);

    SysMenu modify(SysMenu sysMenu);

    Optional<SysMenu> single(UUID uuid);

    List<SysMenu> findAllByUuids(Iterable<UUID> uuids);

    List<SysMenu> delete(List<SysMenu> sysMenuList);

    List<SysMenu> listAllMenu();

    List<SysMenu> listMenuByLogin(UUID loginUserUuid);

    List<SysMenu> findAll(SysMenu params);
}
